package cn.smart;

import cn.smart.pojo.GardenInfo;
import cn.smart.util.HardWareResult;
import cn.smart.util.TimeUtil;
import org.junit.Test;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @author Xiezh
 * @Description:
 * @create 2017/7/31
 */
public class TT {
    @Test
    public void ceshi(){
        List<Integer> list = Arrays.asList(12,2,3,15,45,23,0,32);
        GardenInfo info = new GardenInfo(1, 1, 12, 13, 23, 24, 27, 36, list);
        HardWareResult result = new HardWareResult("flower", "go", info);
        System.out.println(result.getResult());
    }
    @Test
    public  void ceshi2(){
        HardWareResult result = new HardWareResult("flower", "ok");
        System.out.println(result.getResult());
    }
    @Test
    public  void  ceshi3(){
        System.out.println(TimeUtil.getTimeToDay(new Date()));
        System.out.println(TimeUtil.getTimeToSecond(new Date()));
    }
}
